//
//  BIDPartyMainViewController.m
//  JuanChengOA
//
//  Created by mal on 2017/12/29.
//  Copyright © 2017年 mal. All rights reserved.
//

#import "BIDPartyMainViewController.h"
#import "BIDInfoBriefListViewController.h"

@interface BIDPartyMainViewController ()

@end

@implementation BIDPartyMainViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.title = @"党建";
    _menuArr = @[@{@"title":@"党建新闻", @"imgName":@"dangjianNews.png", @"type":@"2"},
                 @{@"title":@"十九大学习", @"imgName":@"nineteenMeetingStudy.png", @"type":@"9"}];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
{
    UIViewController *vc = nil;
    NSUInteger row = [indexPath row];
    NSDictionary *dic = _menuArr[row];
    NSString *strURL = dic[@"type"];
    BIDInfoBriefListViewController *listVC = [[BIDInfoBriefListViewController alloc] init];
    listVC.title = dic[@"title"];
    listVC.type = dic[@"type"];
    vc = listVC;
    [self.navigationController pushViewController:vc animated:YES];
}

@end
